{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "173f59d9",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "用户名称：JJ\n",
      "登录密码：105418\n",
      "欢迎登陆\n",
      "你想查询星期几的课程表：2\n",
      "2\n",
      "今天有四门课，分别是1~3节的用户研究,8~9的H5互动技术与应用，10~11的大英，12~14的创业基础实践\n"
     ]
    }
   ],
   "source": [
    "user_data = \"JJ\"\n",
    "user_password = \"105418\"\n",
    "user_name = input(\"用户名称：\")\n",
    "password = input(\"登录密码：\")\n",
    "\n",
    "count = 10\n",
    "while True:\n",
    "    count -= 1\n",
    "    if user_name == user_data:\n",
    "        if password == user_password:\n",
    "            print(\"欢迎登陆\")\n",
    "            break\n",
    "    else:\n",
    "        if count == 0:\n",
    "            print(\"十次机会已使用完\")\n",
    "        else:\n",
    "            print(\"您输入的账号或密码不对，请重新输入，您还有\",count,\"次机会\")\n",
    "            break\n",          
    "import time\n",
    "time=input(\"你想查询星期几的课程表：\")\n",
    "week_time =int(time)\n",
    "print(week_time)\n",
    "if week_time == 1:\n",
    "    print(\"今天有一门课，是python课\");\n",
    "elif week_time == 2:\n",
    "    print(\"今天有四门课，分别是1~3节的用户研究,8~9的H5互动技术与应用，10~11的大英，12~14的创业基础实践\");\n",
    "elif week_time == 3:\n",
    "    print(\"今天只有一门课，1~2节的体育课\");\n",
    "elif week_time == 4:\n",
    "    print(\"今天有两门课，分别是8~9的大英课，12~14节的毛概理论课\");\n",
    "elif week_time == 5:\n",
    "    print(\"今天有两门课，分别是1~2节的ai软件应用，4~5节的毛概实践课\");\n",
    "elif week_time == 6:\n",
    "    print(\"今天没课，放大假\");\n",
    "elif week_time == 7:\n",
    "    print(\"今天没课，放大假\");"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "b5f9c9d3",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
